package com.yulinlin.admin.modules.im.controller;

import com.yulinlin.common.controller.SuperController;
import com.yulinlin.common.domain.ResponseVo;
import io.swagger.annotations.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.im.domain.ImSessionEntity;

import com.yulinlin.admin.modules.im.service.IImSessionService;
import com.yulinlin.admin.modules.im.domain.config.ImSessionConfig;
import com.yulinlin.admin.modules.im.domain.page.ImSessionPage;

@Api(tags = "会话")
@RestController
@RequestMapping("/im/imSession")
public class ImSessionController extends SuperController<ImSessionEntity,ImSessionPage>  {


    @Autowired
    private IImSessionService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<ImSessionConfig> config() {
        ImSessionConfig config =ImSessionConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
